package com.bajiao.app.controller.industry;

import com.bajiao.app.base.AppBaseController;
import com.bajiao.common.api.vo.RestResult;
import com.bajiao.entity.industry.Industry;
import com.bajiao.service.industry.IndustryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Api(tags = "行业接口")
@RestController
@RequestMapping("/api/v1/industry")
public class RestIndustryController extends AppBaseController {

    @Resource
    private IndustryService industryService;

    @GetMapping(value = "/list")
    @ApiOperation(value = "行业列表")
    public RestResult<List<Industry>> getIndustryList() {
        //@create by FanJq 2024/12/12 15:48 行业列表
        List<Industry> industryList = industryService.getList();
        return success(industryList);
    }
}
